import request from '@/utils/request'

// 查询采购列表
export function listProcure(query) {
  return request({
    url: '/wh/procure/list',
    method: 'get',
    params: query
  })
}

// 查询采购详细
export function getProcure(procureId) {
  return request({
    url: '/wh/procure/' + procureId,
    method: 'get'
  })
}

// 新增采购
export function addProcure(data) {
  return request({
    url: '/wh/procure',
    method: 'post',
    data: data
  })
}

// 修改采购
export function updateProcure(data) {
  return request({
    url: '/wh/procure',
    method: 'put',
    data: data
  })
}

// 删除采购
export function delProcure(procureId) {
  return request({
    url: '/wh/procure/' + procureId,
    method: 'delete'
  })
}
